/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package merlion.common.mdb;

import javax.mail.*;

/**
 *
 * @author Zhang Ying
 */
public class SMTPAuthenticator extends javax.mail.Authenticator {
    // Replace with your actual unix id
    private static final String SMTP_AUTH_USER = "is3102m01@gmail.com";
    // Replace with your actual unix password
    private static final String SMTP_AUTH_PWD = "buchisuerp";

    public SMTPAuthenticator() {
    }

    @Override
    public PasswordAuthentication getPasswordAuthentication() {
        String username = SMTP_AUTH_USER;
        String password = SMTP_AUTH_PWD;
        return new PasswordAuthentication(username, password);
    }
}
